package cn.zhou;

public class Teacher {
    private  int id;
    private String name;

    public  Teacher(){

    }

    public  Teacher(int id,String name){
        this.id = id;
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void teacher(){
        System.out.println("工号为" + id  + "的" + name + "老师正在讲课~");
    }
}
